<template>
  <el-dialog ref="uploadFileDialog" v-model="showUploadDialog">
    <el-upload
      class="upload-demo"
      drag
      action="/api/wpan/uploadFile"
      multiple
      :on-success="handleSuccess">
      <el-icon><component is="el-icon-upload"></component></el-icon>
      <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
    </el-upload>
  </el-dialog>

</template>
<script>
export default{
  data(){
    return{
      showUploadDialog:false
    }
  },
  methods:{
    ShowDialog(){
      this.showUploadDialog=!this.showUploadDialog
    },
    handleSuccess(response, file, fileList){
     this.showUploadDialog=false
    }

  }
}

</script>
<style>

</style>